<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var num = 10;
        var IP = 3.14;
        //1. 八进制 0~7 我们程序里面数字前面加0 表示八进制
        var num1 = 010;
        console.log(num1);  //010 八进制转换为 10进制就是8
        var num2 = 012;
        console.log(num2);

        //2. 十六进制 0~9 a~f #ffffff  数字的前面加0x 表示十六进制
        var num3 = 0x9;
        console.log(num3);
        var num4 = 0xa;
        console.log(num4);

        //3. 数字型的最大值和最小值
        console.log(Number.MAX_VALUE);
        console.log(Number.MIN_VALUE);

        //4.无穷大和无穷小
        console.log(Number.MAX_VALUE*2);
        console.log(-Number.MAX_VALUE*2);

        //5.非数字
        console.log('pink老师' -100); //NaN
    </script>
</head>
<body>
    
</body>
</html>